package com.its.util;

import java.util.HashMap;

public class JSONDataResult extends JSONResult {

	HashMap<String, Object> data;
	
	public JSONDataResult() {
		this(JSONResult.success.code, JSONResult.success.message, new HashMap<>());
	}	
	
	public JSONDataResult(HashMap<String, Object> data) {
		this(JSONResult.success.code, JSONResult.success.message, data);
	}
	
	public JSONDataResult(int code, String message, HashMap<String, Object> data) {
		super(code, message);
		this.data = data;
	}

	public HashMap<String, Object> getData() {
		return data;
	}
	
}
